<?php
/**
 * regd by PhpStorm.
 * User: lee
 * Date: 2017/11/29
 * Time: 17:31
 */

namespace Biz\validate;


class ShopBankInfo extends \Doraemon\pockets\validate\Base {


    public static function rules() {
        return [
            ['bank_name','required',null,'请填写银行名称',['signup']],
            ['bank_name','length', '2,10', '请正确填写银行名称', ['signup','update']],
            ['bank_name','regex',['pattern'=>'/^[\x{4e00}-\x{9fa5}_\-a-zA-Z0-9]+$/u'],'请正确填写银行名称',['signup','update']],


            ['bank_subbranch','required',null,'请填写支行名称',['signup']],
            ['bank_subbranch','length', '2,100', '支行名称错误', ['signup','update']],
            ['bank_subbranch','regex',['pattern'=>'/^[\x{4e00}-\x{9fa5}_\-a-zA-Z0-9]+$/u'],'支行名称错误',['signup','update']],


            ['bank_no','required',null,'请填写银行账号',['signup']],
            ['bank_no','length','1,30', '请正确填写银行账号', ['signup','update']],

        ];

    }

}